package thread;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-05-10
 * Time：21:55
 */
public class Demo5 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            while (true) {
                System.out.println("hello thread!");
            }
        });
        thread.start();
        while (true) {
            System.out.println("hello world");
        }
    }
}
